package com.winsdom.dto.resource;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;

@Data
public class ChageTablesDto {

    @NotNull(message = "三表ID不能为空")
    private Integer id;

    @Positive(message = "当前读数必须是正整数")
    private Integer currentReading;

    @Size(min = 1, max = 50, message = "编号长度必须在1-50之间")
    private String number;

    @Size(min = 1, max = 50, message = "名称长度必须在1-50之间")
    private String name;

    @Positive(message = "初始读数必须是正整数")
    private Integer swot;
}
